package com.shyroke.daydayzhuandao.respository;

import com.shyroke.daydayzhuanapi.entity.UserEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends BaseRepository<UserEntity,Integer>{
    UserEntity findByName(String userName);

    @Query("select u from UserEntity u where u.id in (?1) ")
    List<UserEntity> findByIdIn(List<Integer> idList);
}
